package kr.co.hk.earth;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

import android.location.Location;

public class Quake implements Serializable{
	private Date date;
	private String details;
	private Location location;
	private double magnitude;
	private String link;
	
	public Quake(Date date, String details, Location location,
			double magnitude, String link){
		this.date = date;
		this.details = details;
		this.location = location;
		this.magnitude = magnitude;
		this.link = link;
	}
	
	@Override
	public String toString() {
		SimpleDateFormat sdf = new SimpleDateFormat("HH.mm");
		String dateString = sdf.format(date);
		return dateString+" : "+ magnitude + " " + details;
	}
	
	// date
	public Date getDate() {
		return date;
	}
	// details
	public String getDetails() {
		return details;
	}
	// location
	public Location getLocation() {
		return location;
	}
	// magnitude
	public double getMagnitude() {
		return magnitude;
	}
	// link
	public String getLink() {
		return link;
	}
}








